package Dame;

import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;

public class test4 {
    public static void main(String[] args) {
        Map<String,String> map = new HashMap<>();
        map.put("001","小鲁1");
        map.put("002","小鲁2");
        map.put("003","小鲁3");
        System.out.println(map);

        int size = map.size();
        System.out.println(size);

        boolean b = map.containsKey("001");
        boolean b1 = map.containsKey("004");
        System.out.println(b);
        System.out.println(b1);

        boolean c1 = map.containsValue("小鲁1");
        boolean c2 = map.containsValue("小鲁4");
        System.out.println(c1);
        System.out.println(c2);

        String remove = map.remove("001");
        System.out.println(remove);

        boolean empty = map.isEmpty();
        System.out.println(empty);

        map.clear();
        boolean empty1 = map.isEmpty();
        System.out.println(empty1);

    }
}
